﻿namespace iFinance.Entity
{
    using System.Reflection;
    using Sqo;

    #region User

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class User : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region Account

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class Account : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region AccountDetail

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class AccountDetail : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region Consumable

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class Consumable : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region ConsumableType

    /// <summary>
    /// 用映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class ConsumableType : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region IncomeDetail

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class IncomeDetail : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region IncomeType

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class IncomeType : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region Outgoings

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class Outgoings : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID
        {
            get { return this.ID; }
            set { this.ID = value; }
        }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region OutgoingsDetail

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class OutgoingsDetail : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID
        {
            get { return this.ID; }
            set { this.ID = value; }
        }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region OutgoingsLocation

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class OutgoingsLocation : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion

    #region OutgoingsType

    /// <summary>
    /// 映射到Sqo数据库所需实现的接口
    /// </summary>
    public partial class OutgoingsType : ISqoDataObject
    {
        /// <summary>
        /// Sqo数据库中自动生成的主键
        /// </summary>
        public int OID { get; set; }

        public object GetValue(FieldInfo field)
        {
            return field.GetValue(this);
        }

        public void SetValue(FieldInfo field, object value)
        {
            field.SetValue(this, value);
        }
    }

    #endregion
}
